

package com.yungu.swift.system.marketing.service;

import com.yungu.swift.base.ResponseData;
import com.yungu.swift.base.service.BaseService;
import com.yungu.swift.system.marketing.model.dto.MarketingChannelDto;
import com.yungu.swift.system.marketing.model.param.AdminCouponChannelParam;

import java.util.Map;

/**
 * @author xiuyin.cui - Generate
 * @version 1.1.0-SNAPSHOT
 * @since 2019-04-25 13:50
 */
public interface MarketingChannelService extends BaseService<MarketingChannelDto> {

    /**
     * 获取司机邀请司机渠道id
     *
     * @param params 参数
     * @return String
     */
    ResponseData<String> findChannelUuidByConditions(Map<String, Object> params);

    /**
     * 添加/更新渠道
     *
     * @param couponChannelParam 参数
     * @return ResponseData
     */
    ResponseData<Boolean> saveOrUpdate(AdminCouponChannelParam couponChannelParam);

    /**
     * 判断是否唯一
     *
     * @param params 参数
     * @return boolean
     */
    ResponseData<Boolean> onlyOne(Map<String, Object> params);
}